package com.artpri.action.user;

import java.util.List;

import com.artpri.action.BaseAction;
import com.artpri.model.DeliverAdd;
import com.artpri.model.vo.SimpleGoods;

/**
 * 提交订单准备
 * @author ZhangSi
 */
public class OrderPrepareAction extends BaseAction {

	private static final long serialVersionUID = 2400651305591015066L;
	
	private List<Integer> goodsNum;
	
	private List<DeliverAdd> addList;

	private List<SimpleGoods> goodsList;
	
	
	@Override
	public String execute() throws Exception {
		
		//1.获取用户收货地址
		addList = getDeliverAddService().listDeliver(getSessionUser().getUserNum());
		
		//2.获取商品信息
		goodsList = getGoodsService().getSimpleGoods(goodsNum);
		
		return SUCCESS;
	}

	public List<Integer> getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(List<Integer> goodsNum) {
		this.goodsNum = goodsNum;
	}

	public List<DeliverAdd> getAddList() {
		return addList;
	}

	public void setAddList(List<DeliverAdd> addList) {
		this.addList = addList;
	}

	public List<SimpleGoods> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<SimpleGoods> goodsList) {
		this.goodsList = goodsList;
	}
}
